<form method="post" action="newAnime" class="form-horizontal form-actions">


<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">Add Anime</h3>
	</div>
	
	<div class="panel-body">		
	
		<fieldset>			
			<div class="form-group ${empty form.erreurs['name'] ? '': 'has-error'}">
				<label class="control-label col-sm-2" for="name">Name</label>
				<div class="col-sm-10">
					<input class="form-control" type="text" id="name" name="name" value="<c:out value="${anime.name}"/>" size="20" maxlength="60" />
					<c:if test="${!empty form.resultat}">
						<span class="help-block">${empty form.erreurs['name'] ? 'Success' : form.erreurs['name']}</span>
					</c:if>
				</div>
			</div>			
			
			
			<div class="form-group ${empty form.erreurs['synopsis'] ? '': 'has-error'}">
				<label class="control-label col-sm-2" for="synopsis">Synopsis</label>
				<div class="col-sm-10">
					<textarea class="form-control" rows="10" id="synopsis" name="synopsis" value="" ></textarea>
					<c:if test="${!empty form.resultat}">
						<span class="help-block">${empty form.erreurs['synopsis'] ? 'Success' : form.erreurs['synopsis']}</span>
					</c:if>	
				</div>
			</div>
			
			<div class="form-group ${empty form.erreurs['pathImg'] ? '': 'has-error'}">
				<label class="control-label col-sm-2" for="pathImg">Cover URL</label>
				<div class="col-sm-10">
					<input class="form-control" type="text" id="pathImg" name="pathImg" value="<c:out value="${anime.pathImg}"/>" size="20" maxlength="60" />
					<c:if test="${!empty form.resultat}">
						<span class="help-block">${empty form.erreurs['pathImg'] ? 'Success' : form.erreurs['pathImg']}</span>
					</c:if>
				</div>
			</div>		
			
			<c:if test="${!empty form.resultat}">
				<div class="alert alert-${empty form.erreurs ? 'success' : 'danger'} alert-dismissable">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
					<strong>${form.resultat}</strong>
				</div>
			</c:if>
			
			<div class="form-group col-sm-3 col-sm-offset-3 ">
				<button class="btn btn-primary" type="submit" name="submit">Valider&ensp;<i class="icon-white icon-ok-sign"></i></button>
				<button class="btn" type="reset">Reset&ensp;<i class="icon-remove"></i></button>
			</div>
			
		</fieldset>
	</div>
</div>
	
</form>

	<!-- Le javascript
	================================================== -->
   <!-- Placed at the end of the document so the pages load faster -->
   <script src="bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>